package com.qf.service.Impl;

import com.qf.dao.Impl.UserDaoImpl;
import com.qf.dao.UserDao;
import com.qf.entity.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
/*2021/10/15*/public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        System.out.println("userDao执行了set方法！！！");
        this.userDao = userDao;
    }

    @Override
    public List<User> showAllUser() {
//        userDao.selectAll();
        System.out.println("业务层调用了查询所有用户信息的Dao!!");
        return null;
    }

    @Override
    public Integer updateUser(User user) {
        System.out.println("更新了用户的信息！");
        return null;
    }

    @Override
    public Integer saveUser(User user) {
        System.out.println("添加了用户信息");
        return null;
    }

    @Override
    public Integer deleteUser(Integer id) {

        System.out.println("删除了用户信息！");
        return null;
    }
}
